@extends('admin')

@section('content')

    <div class="nav">
        <ul class="cc">
            <li class="current">
                <a href="{{url('admin/order/payment')}}">扫码转账清单</a>
            </li>
        </ul>
    </div>

    <div class="h_a">搜索</div>
    <div class="search_type cc mb10">
        <form action="{{url('admin/order/payment')}}" method="get" class="search_form">
            <label for="search_buyer_mobile">付款人手机：</label><input type="text" name="buyer_mobile" value="{{$buyer_mobile}}" id="search_buyer_mobile" class="input length_2 mr10"/>
            <label for="search_seller_mobile">收款人手机：</label><input type="text" name="seller_mobile" value="{{$seller_mobile}}" id="search_seller_mobile" class="input length_2 mr10"/>
            <label for="search_order_sn">交易单号：</label><input type="text" name="order_sn" value="{{$order_sn}}" id="search_order_sn" class="input length_2 mr10"/>
            <button type="submit" class="btn">提交查询</button>
        </form>
    </div>

    <div class="table_list">
        <div id="data_list">
            <table class="items">
                <thead>
                <tr>
                    <th>SN</th>
                    <th>付款人</th>
                    <th>收款人</th>
                    <th>转账总额</th>
                    <th>转账时间</th>
                    <th>状态</th>
                </tr>
                </thead>
                <tbody>
                @foreach ($list as $item)
                    <tr>
                        <td>{{$item->order_sn}}</td>
                        <td>@if ($item->seller) {{$item->seller->name}} @endif</td>
                        <td>@if ($item->seller) {{$item->seller->name}} @endif</td>
                        <td>{{$item->amount}}</td>
                        <td>{{$item->pay_time}}</td>
                        <td>@if ($item->status == 1) <span class="green">转账成功</span> @else <span class="red">转账失败</span> @endif</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

        <div class="summary">
            共有 {{$list->total()}} 条数据
        </div>
        @if ($list->hasPages())
            <div class="pager">
                {!! $list->appends($appends)->render() !!}
            </div>
        @endif
    </div>

@stop